﻿namespace IronLua

open System
open System.IO

type LuaState private() =
    class        
        static let instance = lazy LuaState()
        let mutable stdout = Console.Out
        let mutable panic = null
        let mutable _env = null

        static member Instance with get() = instance.Value
        
        member this.Panic with get() = panic and set(pfn) = panic <- pfn
        member this.StdOut with get() = stdout and set(tw) = stdout <- tw
        member this.Environ with get() = _env and set(env) = _env <- env

    end


